package com.it.xyx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Classname ${NAME}
 * @Description TODO
 * @Date 2024/8/22 13:44
 * @Created by 潜伏Sir
 */
//启用feign客户端,定义服务+绑定接口，以声明式的方法优雅而简单的实现服务调用
@EnableFeignClients
//开启配置中心数据动态刷新
@RefreshScope
//开启服务注册
@EnableDiscoveryClient
@SpringBootApplication
public class ServerMain {
    public static void main(String[] args) {
        SpringApplication.run(ServerMain.class, args);
        System.out.println("Hello world!");
    }
}